package NO11;

public class pai {
    public  String Name;
    public  String area;
    public  String price;

    public pai(String name, String area, String price) {
        Name = name;
        this.area = area;
        this.price = price;

    }
    //无参构造器
    public pai(){};

    public String Name() {
        return Name;
    }

    public String area() {
        return area;
    }

    public String price() {
        return price;
    }

    public void setName(String name) {
        Name = name;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "pai{" +
                "，名字='" + Name + '\'' +
                ", 产地='" + area + '\'' +
                ", 单价='" + price + '\'' +
                '}';
    }
}
